package com.scorpio.agentuser.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("agent_income")
public class AgentIncomeEntity {
    @TableId(type = IdType.AUTO)
    private Long id;

    //代理商ID
    private Long agentId;

    //收益金额
    private Float currency;

    //关联agent_pay_user收益记录
    private Long payRecordId;

    //推荐等级 1=直推,2=2以上都是间推
    private Integer recLevel;

    //当前收益比例
    private Float incomeScale;

    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
}
